
import {authRequest} from '@/utils/request'
//转让积分
export const apiTransfer = (data: TransferOption) => {
    return authRequest<Transfer>({
        url: '/auc/transferPoints',
        method: 'POST',
        data
    })
}
//绑定第三方ID
export const apiBindThirdId = (data:{ ThirdPartyAccountId: string;}) => {
    return authRequest({
        url: '/auc/bindThirdPartyAccountId',
        method: 'POST',
        data
    })
}
//兑换积分
export const apiExchange = (data: ExchangeOption) => {
    return authRequest<Exchange>({
        url: '/auc/exchangePoints',
        method: 'POST',
        data
    })
}
//贵茶交账户信息
export const apiGetAccountInfo = (data:{}) => {
    return authRequest<getAccountInfo>({
        url: '/auc/point/getGcjAccountInfo',
        method: 'GET',
        data
    })
}
//绑定贵茶交账户
export const apiGcjAccountBind = (data:{gcjAccount:string}) => {
    return authRequest({
        url: '/auc/point/gcjAccountBind',
        method: 'GET',
        data
    })
}
//实名认证账户信息
export const apiRealNameAccountInfo = (data:{}) => {
    return authRequest<gcjAccountBind>({
        url: '/auc/point/getRealNameVerificationInfo',
        method: 'GET',
        data
    })
}
//实名认证
export const apiRealNameVerification = (data:{idCardNumber: string,realName: string;}) => {
    return authRequest({
        url: '/auc/point/realNameVerification',
        method: 'POST',
        data
    })
}
//我的积分信息
export const apiMyScoreInfo = (data:{}) => {
    return authRequest<MyScoreInfo>({
        url: '/auc/getUserPointsInfo',
        method: 'GET',
        data,
         header: {
      // ✅ 在这里添加额外的 header
      'Client-Type': 'CONSUMER',
      'device-id': '1',
      'Shop-id': '0',
      'Platform': 'H5'
    }
    })
}
//商品列表
export const apiGoodsList = (data:GoodsListOption) => {
    return authRequest<GoodsList>({
        url: '/auc/getSalesSectionList',
        method: 'POST',
        data
    })
}

